//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package objects;

import java.util.LinkedHashMap;

public class ResourceRequest {
    private static LinkedHashMap<String, String> last = new LinkedHashMap();

    public ResourceRequest() {
    }

    public static void lock(String resource, String production) {
        last.put(resource, production);
    }

    public static void unlock(String resource) {
        last.remove(resource);
    }

    public static boolean isLocked(String resource, String production) {
        String lp = (String)last.get(resource);
        return lp == null?false:!lp.equals(production);
    }

    public static void reset() {
        last.clear();
    }
}
